﻿function setRTimeout(target, func, delay, args) {
    if (args) {
        if (target) {
            window.setTimeout(function() { func.apply(target, args); }, delay);
        }
    } else {
        if (target) {
            window.setTimeout(function() { func.apply(target); }, delay);
        }
    }
}